package net.zabuchy.UserRole.entity;

import java.io.Serializable;
import javax.persistence.*;

import net.zabuchy.user.entity.User;

@Entity
@Table(name="USER_ROLES", catalog="quickstart")
public class User_roles implements Serializable {
	private static final long serialVersionUID = 1L;

	
	private int userRoleId;
	private String authority;
	private int userId;

	
    public User_roles() {
    }
    
    public User_roles(String authority, int userId) {
		super();
		this.authority = authority;
		this.userId = userId;
	}

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="USER_ROLE_ID")
	public int getUserRoleId() {
		return this.userRoleId;
	}

	public void setUserRoleId(int userRoleId) {
		this.userRoleId = userRoleId;
	}

	@Column(name="AUTHORITY")
	public String getAuthority() {
		return this.authority;
	}

	public void setAuthority(String authority) {
		this.authority = authority;
	}

	@Column(name="USER_ID")
	public int getUserId() {
		return this.userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

}